<template>
  <div class="record_text">
    <div class="info">
      <div class="item createInfo">
        <p>
          <label>创建人</label>
          <span>{{ recordInfo.createUserName }}</span>
        </p>
      </div>
      <div class="item updateInfo">
        <p>
          <label>创建时间</label>
          <span>{{ recordInfo.createTime }}</span>
        </p>
      </div>
    </div>
    <div class="info">
      <div class="item createInfo updata">
        <p>
          <label>修改人</label>
          <span>{{ recordInfo.updateUserName }}</span>
        </p>
      </div>
      <div class="item updateInfo updata">
        <p>
          <label>修改时间</label>
          <span>{{ recordInfo.updateTime }}</span>
        </p>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'recordingInformation',
  props: {
    recordInfo: {
      type: Object,
      require: true
    }
  }
}
</script>

<style lang="scss" scope>
.record_text {
  .info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    .item {
      flex: 1;
      border: 1px solid #dcdfe6;
      border-bottom: none;
      border-radius: 4px 4px 0px 0px;
      &.createInfo {
        margin-right: 16px;
      }
      &.updata {
        border-bottom: 1px solid #dcdfe6;
        border-radius: 0px 0px 4px 4px;
      }
    }
    p {
      width: 100%;
      height: 40px;
      line-height: 40px;
      label {
        display: inline-block;
        width: 25%;
        min-width: 120px;
        height: 100%;
        padding: 0 16px;
        box-sizing: border-box;
        background: #f5f7fa;
        border-right: 1px solid #dcdfe6;
        text-align: right;
        font-size: 14px;
        font-weight: 400;
        color: #606266;
      }
      span {
        padding: 0 16px;
        font-size: 14px;
        font-family: PingFangSC-Regular, PingFang SC;
        font-weight: 400;
        color: #606266;
        line-height: 20px;
      }
    }
  }
}
</style>
